package org.xin.security.pojo.form;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.xin.framework.base.pojo.form.IBaseForm;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author ：xin
 * @date ：Created in 19:30
 * @description：
 * @modified By：$
 * @version: $
 */
@Getter
@Setter
/*忽略未知参数*/
@JsonIgnoreProperties(ignoreUnknown = true)
@ApiModel(description = "UserLoginForm")
public class UserLoginForm extends IBaseForm implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "账号不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "验证码不能为空")
    private String code;

    @NotBlank(message = "验证键不能为空")
    private String uuid;
}
